def internal_1():
  SiebelAg1.MakeCall(DN2)
  SiebelAg2.AnswerCall()
  SiebelAg1.ReleaseCall()

def internal_2():
  """ D2. Internal call SiebelAg1 to SiebelAg3, release SiebelAg1"""
  SiebelAg1.MakeCall(DN3)
  SiebelAg3.AnswerCall()
  SiebelAg3.ReleaseCall()

def internal_3():
  """ D3. Internal call SiebelAg3 to SiebelAg1, release SiebelAg3"""
  SiebelAg3.MakeCall(DN1)
  SiebelAg1.AnswerCall()
  SiebelAg3.ReleaseCall()

def internal_4():
  """ D4. Internal call SiebelAg1 to SiebelAg3, release SiebelAg1"""
  SiebelAg1.MakeCall(DN3)
  SiebelAg3.AnswerCall()
  SiebelAg1.ReleaseCall()

def internal_5():
  """ Internal call SiebelAg3 to SiebelAg1, abnormal release SiebelAg3"""
  SiebelAg3.MakeCall(DN1)
  SiebelAg3.ReleaseCall()

def internal_6():
  """ Internal call SiebelAg1 to SiebelAg3, abnormal release SiebelAg1"""
  SiebelAg1.MakeCall(DN3)
  SiebelAg1.ReleaseCall()


def internal_7():
  """ C12. Internal call SiebelAg1 to  SiebelAg2, two step transfer to SiebelAg3, release SiebelAg3"""
  SiebelAg1.MakeCall(DN2)
  SiebelAg2.AnswerCall()
  SiebelAg2.InitiateTransfer(DN3)
  SiebelAg3.AnswerCall()
  SiebelAg2.CompleteTransfer()
  SiebelAg3.ReleaseCall()

def internal_8():
  """ C13. Internal call SiebelAg1 to  SiebelAg2, tinit to SiebelAg3, abnormal release SiebelAg2, rel SiebelAg1"""
  SiebelAg1.MakeCall(DN2)
  SiebelAg2.AnswerCall()
  SiebelAg2.InitiateTransfer(DN3)
  SiebelAg2.ReleaseCall()
  SiebelAg1.ReleaseCall()

def internal_9():
  """ C14. Internal call SiebelAg1 to  SiebelAg2, tinit to SiebelAg3, rel SiebelAg1, SiebelAg3 ans, SiebelAg2 rel"""
  SiebelAg1.MakeCall(DN2)
  SiebelAg2.AnswerCall()
  SiebelAg2.InitiateTransfer(DN3)
  SiebelAg1.ReleaseCall()
  SiebelAg3.AnswerCall()
  SiebelAg2.ReleaseCall()

def internal_10():
  """ C15. Internal call SiebelAg1 to SiebelAg2, two step transfer to SiebelAg3, compl bef consul party answer"""
  SiebelAg1.MakeCall(DN2)
  SiebelAg2.AnswerCall()
  SiebelAg2.InitiateTransfer(DN3)
  SiebelAg2.CompleteTransfer()
  SiebelAg3.AnswerCall()
  SiebelAg1.ReleaseCall()

def internal_11():
  """ C16. Internal call, two step transfer to SiebelAg3, completed before consul party answer, abnor"""
  SiebelAg1.MakeCall(DN2)
  SiebelAg2.AnswerCall()
  SiebelAg2.InitiateTransfer(DN3)
  SiebelAg2.CompleteTransfer()
  SiebelAg1.ReleaseCall()

def internal_12():
  """Internal call SiebelAg1 to SiebelAg3, SiebelAg3 single step transfer to SiebelAg2, SiebelAg2 answer,SiebelAg1 release"""
  SiebelAg1.MakeCall(DN3)
  SiebelAg3.AnswerCall()
  SiebelAg3.SingleStepTransfer(DN2)
  SiebelAg2.AnswerCall()
  SiebelAg1.ReleaseCall()

def internal_13():
  """Internal call SiebelAg1 to SiebelAg3, SiebelAg3 single step transfer to SiebelAg2, SiebelAg2 answer,SiebelAg2 release"""
  SiebelAg1.MakeCall(DN3)
  SiebelAg3.AnswerCall()
  SiebelAg3.SingleStepTransfer(DN2)
  SiebelAg2.AnswerCall()
  SiebelAg2.ReleaseCall()

def internal_14():
  """Internal call SiebelAg1 to SiebelAg3, SiebelAg3 single step transfer to SiebelAg2, abnormal SiebelAg1 release"""
  SiebelAg1.MakeCall(DN3)
  SiebelAg3.AnswerCall()
  SiebelAg3.SingleStepTransfer(DN2)
  SiebelAg1.ReleaseCall()

# the same but transfer is performed by call originator

def internal_15():
  """Internal call SiebelAg1 to SiebelAg3, SiebelAg1 single step transfer to SiebelAg2, SiebelAg2 answer,SiebelAg3 release"""
  SiebelAg1.MakeCall(DN3)
  SiebelAg3.AnswerCall()
  SiebelAg1.SingleStepTransfer(DN2)
  time.sleep(5)
  SiebelAg2.AnswerCall()
  SiebelAg3.ReleaseCall()

def internal_16():
  """Internal call SiebelAg1 to SiebelAg3, SiebelAg1 single step transfer to SiebelAg2, SiebelAg2 answer,SiebelAg2 release"""
  SiebelAg1.MakeCall(DN3)
  SiebelAg3.AnswerCall()
  SiebelAg1.SingleStepTransfer(DN2)
  SiebelAg2.AnswerCall()
  SiebelAg2.ReleaseCall()

##def internal_16a():
##  """Internal call SiebelAg1 to SiebelAg3, SiebelAg1 single step transfer to SiebelAg2, SiebelAg2 answer,SiebelAg2 release"""
##  SiebelAg1.MakeCall(ExtDN1)
##  ExtDN1.AnswerCall()
##  SiebelAg1.SingleStepTransfer(ACD2)
##  SiebelAg2.AnswerCall()
##  SiebelAg2.ReleaseCall()
##
##def internal_16b():
##  """Internal call SiebelAg1 to SiebelAg3, SiebelAg1 single step transfer to SiebelAg2, SiebelAg2 answer,SiebelAg2 release"""
##  SiebelAg1.MakeCall(ExtDN1)
##  ExtDN1.AnswerCall()
##  SiebelAg1.SingleStepTransfer(DN2)
##  SiebelAg2.AnswerCall()
##  SiebelAg2.ReleaseCall()

def internal_17():
  """Internal call SiebelAg1 to SiebelAg3, SiebelAg1 single step transfer to SiebelAg2, abnormal SiebelAg3 release"""
  SiebelAg1.MakeCall(DN3)
  SiebelAg3.AnswerCall()
  SiebelAg1.SingleStepTransfer(DN2)
  SiebelAg3.ReleaseCall()

def internal_18():
  """ C35. Internal call SiebelAg1 to SiebelAg2, Internal conference to SiebelAg3, release SiebelAg1, SiebelAg2"""
  SiebelAg1.MakeCall(DN2)
  SiebelAg2.AnswerCall()
  SiebelAg2.InitiateConference(DN3)
  SiebelAg3.AnswerCall()
  SiebelAg2.CompleteConference()
  SiebelAg1.ReleaseCall()
  SiebelAg2.ReleaseCall()

def internal_19():
  """ C36. Internal call SiebelAg1 to SiebelAg2, SiebelAg2 cinit conference to SiebelAg3, abnorl release SiebelAg2, release SiebelAg1"""
  SiebelAg1.MakeCall(DN2)
  SiebelAg2.AnswerCall()
  SiebelAg2.InitiateConference(DN3)
  SiebelAg2.ReleaseCall()
  SiebelAg1.ReleaseCall()

def internal_20():
  """ C45. Internal call SiebelAg1 to SiebelAg2, mute transfer to SiebelAg3, release SiebelAg1"""
  SiebelAg1.MakeCall(DN2)
  SiebelAg2.AnswerCall()
  SiebelAg2.MuteTransfer(DN3)
  SiebelAg3.AnswerCall()
  SiebelAg1.ReleaseCall()

def internal_21():
  """ C48. Internal call SiebelAg1 to SiebelAg2, mute transfer to SiebelAg3, abnormal release SiebelAg1"""
  SiebelAg1.MakeCall(DN2)
  SiebelAg2.AnswerCall()
  SiebelAg2.MuteTransfer(DN3)
  SiebelAg1.ReleaseCall()

def internal_22():
  """CR1. SiebelAg1 call to SiebelAg2, SiebelAg1 transfer to SiebelAg3, release SiebelAg3"""
  SiebelAg1.MakeCall(DN2)
  SiebelAg2.AnswerCall()
  SiebelAg1.InitiateTransfer(DN3)
  SiebelAg3.AnswerCall()
  SiebelAg1.CompleteTransfer()
  SiebelAg3.ReleaseCall()

def internal_23():
  """CR2. SiebelAg1 call to SiebelAg2, SiebelAg1 tinit to SiebelAg3, abn release SiebelAg1, release SiebelAg1"""
  SiebelAg1.MakeCall(DN2)
  SiebelAg2.AnswerCall()
  SiebelAg1.InitiateTransfer(DN3)
  SiebelAg1.ReleaseCall()
  SiebelAg1.ReleaseCall()

def internal_24():
  """CR3. SiebelAg1 call to SiebelAg2, SiebelAg1 tinit to SiebelAg3, rel SiebelAg2, SiebelAg3 ans, rel SiebelAg1"""
  SiebelAg1.MakeCall(DN2)
  SiebelAg2.AnswerCall()
  SiebelAg1.InitiateTransfer(DN3)
  SiebelAg2.ReleaseCall()
  SiebelAg3.AnswerCall()
  SiebelAg1.ReleaseCall()

def internal_25():
  """CR4. SiebelAg1 call to SiebelAg2, SiebelAg1 tinit to SiebelAg3, abn rel SiebelAg1, release SiebelAg2"""
  SiebelAg1.MakeCall(DN2)
  SiebelAg2.AnswerCall()
  SiebelAg1.InitiateTransfer(DN3)
  SiebelAg1.ReleaseCall()
  SiebelAg2.ReleaseCall()

def internal_26():
  """CR5. SiebelAg1 call to SiebelAg2, SiebelAg1 tinit to SiebelAg3,  rel SiebelAg2, abn release SiebelAg1"""
  SiebelAg1.MakeCall(DN2)
  SiebelAg2.AnswerCall()
  SiebelAg1.InitiateTransfer(DN3)
  SiebelAg2.ReleaseCall()
  SiebelAg1.ReleaseCall()

def internal_27():
  """CR6. SiebelAg1 call to SiebelAg2, SiebelAg1 blind to SiebelAg3, release SiebelAg3"""
  SiebelAg1.MakeCall(DN2)
  SiebelAg2.AnswerCall()
  SiebelAg1.InitiateTransfer(DN3)
  SiebelAg1.CompleteTransfer()
  SiebelAg3.AnswerCall()
  SiebelAg3.ReleaseCall()

def internal_28():
  """CR7. SiebelAg1 call to SiebelAg2, SiebelAg1 blind  to SiebelAg3,abn release SiebelAg2"""
  SiebelAg1.MakeCall(DN2)
  SiebelAg2.AnswerCall()
  SiebelAg1.InitiateTransfer(DN3)
  SiebelAg1.CompleteTransfer()
  SiebelAg2.ReleaseCall()

def internal_29():
  """CR35. SiebelAg1 call to SiebelAg2, SiebelAg1 conference to SiebelAg3, release SiebelAg1, SiebelAg3"""
  SiebelAg1.MakeCall(DN2)
  SiebelAg2.AnswerCall()
  SiebelAg1.InitiateConference(DN3)
  SiebelAg3.AnswerCall()
  SiebelAg1.CompleteConference()
  SiebelAg1.ReleaseCall()
  SiebelAg3.ReleaseCall()

def internal_30():
  """CR36. SiebelAg1 call to SiebelAg2, SiebelAg1 cinit to SiebelAg3, abnormal release SiebelAg1, release SiebelAg1"""
  SiebelAg1.MakeCall(DN2)
  SiebelAg2.AnswerCall()
  SiebelAg1.InitiateConference(DN3)
  SiebelAg1.ReleaseCall()
  SiebelAg1.ReleaseCall()

def internal_31():
  """CR37. SiebelAg1 call to SiebelAg2, SiebelAg1 cinit to SiebelAg3, release SiebelAg1, release SiebelAg2"""
  SiebelAg1.MakeCall(DN2)
  SiebelAg2.AnswerCall()
  SiebelAg1.InitiateConference(DN3)
  SiebelAg3.AnswerCall()
  SiebelAg1.ReleaseCall()
  SiebelAg2.ReleaseCall()

def internal_32():
  """CR38. SiebelAg1 call to SiebelAg2, SiebelAg1 cinit to SiebelAg3, release SiebelAg2, release SiebelAg1"""
  SiebelAg1.MakeCall(DN2)
  SiebelAg2.AnswerCall()
  SiebelAg1.InitiateConference(DN3)
  SiebelAg3.AnswerCall()
  SiebelAg2.ReleaseCall()
  SiebelAg1.ReleaseCall()

def internal_33():
  """CR39. SiebelAg1 call to SiebelAg2, SiebelAg1 conference to SiebelAg3, release SiebelAg1, SiebelAg2"""
  SiebelAg1.MakeCall(DN2)
  SiebelAg2.AnswerCall()
  SiebelAg1.InitiateConference(DN3)
  SiebelAg3.AnswerCall()
  SiebelAg1.CompleteConference()
  SiebelAg1.ReleaseCall()
  SiebelAg2.ReleaseCall()

def internal_34():
  """CR40. SiebelAg1 call to SiebelAg2, SiebelAg1 conference to SiebelAg3, release SiebelAg2, SiebelAg1"""
  SiebelAg1.MakeCall(DN2)
  SiebelAg2.AnswerCall()
  SiebelAg1.InitiateConference(DN3)
  SiebelAg3.AnswerCall()
  SiebelAg1.CompleteConference()
  SiebelAg2.ReleaseCall()
  SiebelAg1.ReleaseCall()

def internal_35():
  """CR59. SiebelAg1 call to SiebelAg2, SiebelAg1 mute transfer to SiebelAg3, release  SiebelAg2"""
  SiebelAg1.MakeCall(DN2)
  SiebelAg2.AnswerCall()
  SiebelAg1.MuteTransfer(DN3)
  SiebelAg3.AnswerCall()
  SiebelAg2.ReleaseCall()

def internal_36():
  """CR60. SiebelAg1 call to SiebelAg2, SiebelAg1 mute transfer to SiebelAg3, release  SiebelAg3"""
  SiebelAg1.MakeCall(DN2)
  SiebelAg2.AnswerCall()
  SiebelAg1.MuteTransfer(DN3)
  SiebelAg3.AnswerCall()
  SiebelAg3.ReleaseCall()

def internal_37():
  """CR61. SiebelAg1 call to SiebelAg2, SiebelAg1 mute transfer to SiebelAg3, abnormal release  SiebelAg2"""
  SiebelAg1.MakeCall(DN2)
  SiebelAg2.AnswerCall()
  SiebelAg1.MuteTransfer(DN3)
  SiebelAg2.ReleaseCall()

def internal_38():
  """ Int_116. SiebelAg2 call SiebelAg1, SiebelAg1 redirect call to SiebelAg3, rel SiebelAg3."""
  SiebelAg2.MakeCall(DN1)
  SiebelAg1.RedirectCall(DN3)
  SiebelAg3.AnswerCall()
  SiebelAg3.ReleaseCall()
